import fetch from 'isomorphic-unfetch'

/**
 * @获取数据
 * @return {Object} data
 * @author guozhaodong 
*/
export async function fetchDataApi() {
    const res = await fetch(`https://api.github.com/`)
    const data = await res.json()
    return data
}